<?php
namespace Admin\Controller;

use Think\Controller;
use Common\Controller\AdminController;

class PanelController extends AdminController {

    protected function _initialize()
    {
        if(!session("username")){
            Header("location: " . C("SITE_URL") . "/home/login/index");
            exit;
        }else{
            parent::_initialize();
        }
    }

    public function index(){
        $this->display();
    }
}